#ifndef SHADER_H
#define SHADER_H
#include <GL/gl.h>
#include <string>
#include <vector>

class Shader 
{
public:
    Shader(const std::string& vertexpath, const std::string& fragmentpath);

    ~Shader();
    void use(void);
    GLuint Id(void);
    void setBool(const std::string&name, bool value) const;
    void setInt(const std::string& name, int value) const;
    void setFloat(const std::string& name, float value) const;
private:
    void checkCompileError(GLuint shader, std::string type);
    GLuint shaderId;
};

#endif//SHADER_H


